<template>
  <div>
    <ve-pie :data="chartData"></ve-pie>
  </div>
</template>

<script>
import $api from "@/api/api-charts";
import DateTime from "@/utils/DateTime";

export default {
  name: "PieFilmTicket",
  data: function () {
    return {
      chartData: {
        columns: ['name', 'value'],
        rows: []
      },
      params: {
        tenantName: '',
        cinemaName: '',
        channelTypeName: '',
        channelName: '',
        goodsTypeName: '',
        filmName: '',
        sessionYear: '',
        sessionMonth: '',
        sessionDay: '',
        sessionHour: '',
        datetimeStart: DateTime.of().toDateTimeStart(),
        datetimeEnd: DateTime.of().toDateTimeEnd()
      }
    }
  },
  created() {
    $api.chartsFilmTicket(this.params).then(data => this.chartData = data);
  }
}
</script>

<style scoped>

</style>
